package com.itheima.service;

import com.github.pagehelper.PageInfo;

public interface ESManagerService {

    /**
     *添加博客
     * @param uid
     * @return
     */
    void addElasticSearchIndexByUid(String uid);

    /**
     *通过uid删除博客
     * @param uid
     * @return
     */
    void deleteElasticSearchByUid(String uid);

    /**
     *通过ElasticSearch搜索博客
     * @param keywords
     * @param currentPage
     * @param pageSize
     * @return
     */
    PageInfo elasticSearchBlog(String keywords, Integer currentPage, Integer pageSize);

    /**
     * 创建索引库结构
     */
    void createMappingAndIndex();

    /**
     * 导入全部博客集合进入到索引库
     */
    void importAll();


}
